<?php

namespace App\Repositories;

use App\Models\Menus;

class MenusRepository extends BaseRepository
{
    public function model()
    {
        return Menus::class;
    }

    /**
     * 获取菜单列表
     * Date: 2018/05/21
     * @author Tenny
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function getMenuses()
    {
        $menus = $this->get();
        return $menus;
    }

    protected function serialization(array $attributes)
    {
        // TODO: Implement serialization() method.
    }
}